﻿// -----------------------------------------------------------------------
// <copyright file="ResourceValueConverter.cs" company="">
// TODO: Update copyright text.
// </copyright>
// -----------------------------------------------------------------------

namespace Sigma.DrBlue.WpfUI.Converters
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Windows.Data;
    using Sigma.DrBlue.WpfUI.Models;

    /// <summary>
    /// TODO: Update summary.
    /// </summary>
    public class ResourceValueConverter : IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            Dictionary<string, string> dicStringResouces = value as Dictionary<string, string>;
            if (dicStringResouces != null)
            {
                return dicStringResouces[(string)parameter];
            }

            return string.Empty;
        }

        public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            throw new NotImplementedException();
        }
    }
}
